#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char* argv[])
{
    int n = 0;
    int arr[30] = {99, 22, 51, 63, 72, 61, 20, 88, 40, 21, 63, 30, 11, 18, 99, 12, 93, 16, 7, 53, 64, 9, 28, 84, 34, 96, 52, 82, 51, 77};
    for (int i = 0; i < 29; i++) {
        for (int j = i + 1; j < 30; j++){
            if (arr[i] * arr[j] > 2022) {
                n++;
            }
      }
    }
    printf("%d", n);
    return 0;
}